package fhp.hlhj.giantfold.presenter

import com.lzy.okgo.model.HttpParams
import fhp.hlhj.giantfold.interfaces.ILatestOrder
import fhp.hlhj.giantfold.javaBean.LatestOrderBean
import fhp.hlhj.giantfold.module.LatestOrderModule

/**
 * Created by Administrator on 2018\2\8 0008.
 */
class LatestOrderPresenter(private val iLatestOrder: ILatestOrder) : LatestOrderModule.onRespListener {
    private val module=LatestOrderModule()

    fun getLatestOder(params: HttpParams){
        module.getLatestOder(params,this)
    }

    override fun onResp(latestOrderBean: LatestOrderBean) {
        iLatestOrder.getLastestOrder(latestOrderBean)
    }
}